package com.ojoin.trade.supplyloan_core.web.controller;

import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ojoin.trade.common.web.controller.BaseController;
import com.ojoin.trade.common.web.controller.BaseControllerImpl;
import com.ojoin.trade.common.web.domain.Result;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.supplyloan_core.web.domain.TbCatchdataStrategy;
import com.ojoin.trade.supplyloan_core.web.service.TbCatchdataStrategyService;

@Controller
@RequestMapping("/operate/tbcatchdatastrategy")
public class TbCatchdataStrategyController extends
		BaseControllerImpl<TbCatchdataStrategy> implements
		BaseController<TbCatchdataStrategy> {

	private org.slf4j.Logger log = LoggerFactory
			.getLogger(TbCatchdataStrategyController.class);


	@Autowired
	private TbCatchdataStrategyService catchdataStrategyService;


	@ResponseBody
	@RequestMapping(value = "/statAll", method = RequestMethod.GET)
	public Result statAll() {
		try {
			// TODO catchdataStrategyService.stat();
			return new Result(Result.Status.OK, true);
		} catch (Exception e) {
			log.error("", e);
			return new Result(Result.Status.ERROR, "查询电商业务数据统计失败");
		}

	}


	@Override
	protected BaseService<TbCatchdataStrategy> getBaseService() {
		return catchdataStrategyService;
	}

}
